<template>
	<div id="app">
		<router-view></router-view>
		<tabbar>
			<tabbar-item class="tabbox" link="/home">
				<span slot="icon" class="icon fa fa-home"></span>
				<span slot="label" class="tab">HOME</span>
			</tabbar-item>
			<tabbar-item class="tabbox" link="/myMusic">
				<span slot="icon" class="icon fa fa-music"></span>
				<span slot="label" class="tab">我的音乐</span>
			</tabbar-item>
			<tabbar-item class="tabbox" link="/friend">
				<span slot="icon" class="icon fa fa-address-book-o"></span>
				<span slot="label" class="tab">朋友</span>
			</tabbar-item>
			<tabbar-item class="tabbox" link="/user">
				<span slot="icon" class="icon fa fa-user-o"></span>
				<span slot="label" class="tab">账户</span>
			</tabbar-item>
		</tabbar>
	</div>
</template>
<script>
	import { Tabbar, TabbarItem } from 'vux'
	export default {
		name: 'app',
		data: function() {
			return {
				methods: "/v1/restserver/ting?method=baidu.ting.song.getRecommandSongList&song_id=877578&num=5"
			}
		},
		components: {
			Tabbar,
			TabbarItem
		},
		mounted: function() {
			this.$http.get("baidu" + this.methods).then(function(res) {
				console.log(res)
			}.bind(this))
			
		}
	}
</script>
<style>
	/*tabbar  的样式---------------ljy*/
	.weui_tabbar_item.weui_bar_item_on .weui_tabbar_label{
		color: white !important;
	}
	.weui_tabbar_item.weui_bar_item_on{
		color: white !important;
	}
	/*tabbar  的样式----------------*/
</style>
<style scoped>
	html {
		font-size: 16px;
	}
	/*基础rem 默认16px 自行选择是否使用----------ljy*/
	@media screen and (min-width: 375px) {
		html {
			/* iPhone6的375px尺寸作为16px基准，414px正好18px大小, 600 20px */
			font-size: calc(100% + 2 * (100vw - 375px) / 39);
			font-size: calc(16px + 2 * (100vw - 375px) / 39);
		}
	}
	
	@media screen and (min-width: 414px) {
		html {
			/* 414px-1000px每100像素宽字体增加1px(18px-22px) */
			font-size: calc(112.5% + 4 * (100vw - 414px) / 586);
			font-size: calc(18px + 4 * (100vw - 414px) / 586);
		}
	}
	
	@media screen and (min-width: 600px) {
		html {
			/* 600px-1000px每100像素宽字体增加1px(20px-24px) */
			font-size: calc(125% + 4 * (100vw - 600px) / 400);
			font-size: calc(20px + 4 * (100vw - 600px) / 400);
		}
	}
	
	@media screen and (min-width: 1000px) {
		html {
			/* 1000px往后是每100像素0.5px增加 */
			font-size: calc(137.5% + 6 * (100vw - 1000px) / 1000);
			font-size: calc(22px + 6 * (100vw - 1000px) / 1000);
		}
	}
	/*基础rem 默认16px 自行选择是否使用----------ljy*/
	.tab {
		text-align: center;
	}
	
	a {
		text-decoration: none;
		text-align: center;
	}
	.icon {
		font-size: 25px;
	}
	
	.tabbox {
		color: gray;
		background-color: rgba(0,0,0,0.9);
	}
</style>